home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15141 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: gecm.com!usenet
  2. From: Richard Gilchrist <richard.gilchrist@gecm.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Memory deallocation and linked lists
  5. Date: 17 Apr 1996 14:05:08 GMT
  6. Organization: Not
  7. Message-ID: <4l2tqk$pt1@gcsin3.geccs.gecm.com>
  8. References: <4l1hpk$hk5@alice.walrus.com>
  9. NNTP-Posting-Host: esk1035.edinbr.gmds.gecm.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.2 (Windows; I; 16bit)
  14.  
  15. warrenj@walrus.com (Warren Johnson) wrote:
  16. >Greetings!
  17. >Let us suppose I have a singularly linked list.  If i free up the first 
  18. >node, will all of the rest of the nodes be freed up as well? Free 
  19. >meaning, using the borland command free().  Do I have to free up each node
  20. >seperately? Something I've never actually known >:). Thanks in advance.
  21. >
  22. >--
  23. >Warren D. Johnson
  24. >CEO and Founder
  25. >Runtime Computing, Inc.
  26. >
  27.  
  28. Warren,
  29.  
  30. I can't remember what the borland command free() does exactly, but  the UNIX c 
  31. command free() requires you to must traverse the list and free each element of the 
  32. list, and I don't think that the borland command  will be much different from the 
  33. UNIX free command.
  34.  
  35.  
  36. Rick
  37.  
  38. -- 
  39. =====================================================================
  40. Richard Gilchrist               | I do not speak for my employer
  41. ECAD Support                    |
  42. GMRDS, SilverKnowes , Edinburgh | 
  43. richard.gilchrist@gecm.com      | 
  44. =====================================================================
  45.  
  46.  
  47.